<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p th:text="${msg}"></p>
<ul th:each="t:${datas}">
    <li><span th:text="${t.id}"></span><span  th:text="${t.gname}"></span></li>
</ul>
</body>
</html>